type pointer workaround?

BlitzMax Forums/BlitzMax Beginners Area/type pointer workaround?

handlefromobject
handletoobject

but be aware that those commands will have a serious performance impact.

you better find a way around that casting by storing the handle in the entity class you are using instead of dynamic casting it!