Purpose of ListToArray

BlitzMax Forums/BlitzMax Beginners Area/Purpose of ListToArray

It is supposed to work like this (return Array of Object -> :object[])

There is no way to directly return anything. Everytime you access the list, you have to cast object -> type as BM is a typesafe language so if you want to have an array of strings you have to cast all objects and add all objects that are actually strings to your string array.