Something like typecasting,

BlitzMax Forums/BlitzMax Programming/Something like typecasting,

Leiden(Posted 2006) [#1]
Can someone give me a Blitzmax example of typecasting... that is if it can be done. I was thinking you could use 'Object' since its the base of most things.


N(Posted 2006) [#2]
TypeToCastTo(variable)

For example...
Downcast:
Object(myEntity)

Upcast:
TEntity(myObject)


Leiden(Posted 2006) [#3]
Thanks,