Hi!
I have a collection of user defined types in a TList. But when I try access the first item in the list:
Local counter:BaseCounter
counter = hero.counters.First()
...
I get a compile error, "Unable to convert from 'Object' to 'BaseCounter'
How do you convert types? I can't seem to find that functionality.
I have a collection of user defined types in a TList. But when I try access the first item in the list:
Local counter:BaseCounter
counter = hero.counters.First()
...
I get a compile error, "Unable to convert from 'Object' to 'BaseCounter'
How do you convert types? I can't seem to find that functionality.