able to convert from 'Object' to 'TPlayer'

BlitzMax Forums/BlitzMax Beginners Area/able to convert from 'Object' to 'TPlayer'

from what I understand, with the casting you can 'convert' a generic Object (the basic type of Bmax) in another type

Local Player:TPlayer = PlayerList.Last()

must be rewritten linke this

Local Player:TPlayer = Tplayer(PlayerList.Last())

in other words you force bmax to convert the object returned by playerList to an object 'TPlayer'.