How to convert from byte ptr to type instance ?

BlitzMax Forums/BlitzMax Programming/How to convert from byte ptr to type instance ?

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.

Is it even possible ? or is it part of the whole issue to ctype/carray mentioned in another thread.

Type mytype
End Type

Local m:mytype,convert:Byte Ptr

m = New mytype
convert = m
m = convert


This doesn't work.