HaloScript supports converting data from one type to another, this is called type casting or just casting. Type casting in HaloScript is done automatically when needed but it's good to keep it in mind as not all types can be converted. Passthrough can be converted to any type and void can be converted to from any type. They are however not the inverse of each other as void destroys the data during conversion.

Target TypeSource type(s)
booleanreal, long, short, string
realany enum, short, long
longshort, real
shortlong, real
object_listany object or object_name
voidany type
any typepassthrough
objectno other object type
unitobject
vehicleobject, unit
weaponobject
deviceobject
sceneryobject