My list returns TLinks, how do it get my object?

BlitzMax Forums/BlitzMax Beginners Area/My list returns TLinks, how do it get my object?

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.

Excuse the typo in the thread title.

I've got a type, "folder", of which I have been creating instances and adding to the list "list_folder".

Now, I need to go back through the list, and I'm starting with this:

cfolder:folder=list_folder.firstlink()

Doesn't work. It says "Unable to convert from 'TLink' to 'folder'". What am I doing wrong, how can I get my 'folder' object back out of the list? If I use .value() on the end of the above, I get "Unable to convert from 'Object' to 'folder'".

I'm really getting to like BMax, but man alive, it's been a horrible horrible learning curve.