I want to make a class, that I can use implicit casting in like in an Abstract:
var a:MyInt = 5;
a.name = "some name";
a.multiplier = 1.3;
a.referenceToSomething = object;
Where MyInt is a Class.
The reason I want to use classes and not abstracts is because MyInt would have fields like "name", "multiplier" etc. And if I cast them through an abstract - those other values would be lost.
Is it possible to create such a type?