How can I have an array of several unique types?

BlitzMax Forums/BlitzMax Programming/How can I have an array of several unique types?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I don't think you actually need to cast the instances to an Object type when inserting them into the array.

Since Object is a superclass of all of your custom types, no casting is required.

However casting will be required to convert the Object back to its original type.