Listtoarray and objects

BlitzMax Forums/BlitzMax Beginners Area/Listtoarray and objects

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 have this code...
Local a[2]
Local b[2]
a[0]=0
a[1]=1
b[0]=0
b[1]=1
clist=CreateList()
For n=EachIn a
    ListAddLast(clist,n)
    Print CountList(clist)
Next
For n=EachIn b
    ListAddLast(clist,n)
    Print CountList(clist)
Next
Local c:Object[]=ListToArray(clist)
Print c[0]

which fails to convert object to string.
Any ideas?