Writing Cast Method
BlitzMax Forums/BlitzMax Beginners Area/Writing Cast Method You can have the same for your types, assumed that BType extends AType
Otherwise direct casting is not possible at all and you would need to write Cast Methods (not functions normally. Methods simimlar to toString() on :Object). Those actually would not cast but create a new object, fill it with the needed values and return it.
Otherwise direct casting is not possible at all and you would need to write Cast Methods (not functions normally. Methods simimlar to toString() on :Object). Those actually would not cast but create a new object, fill it with the needed values and return it.