Forcing an object into a handle and back

BlitzMax Forums/BlitzMax Programming/Forcing an object into a handle and back

Strict 
Type mytype
	Field	f:string="Hello World!"
End Type

Local a:mytype=New mytype
Local b:Int=HandleFromObject(a)
Print b
Local c:mytype=mytype(HandleToObject(b))
Print c.f

<edit> took out some extra stuff not needed.