As byte pointer are not managed, there is no clean way to get a Object (managed) from them again.
If you know that only unmanaged data is stored in thought you can memcopy the byte ptr object into a new class object at position 8+ (byte 0-7 are used bm internally for ref count and class ID. Altought with reflection it potentially might be more than 2 ints, so check before depending on this)
If you know that only unmanaged data is stored in thought you can memcopy the byte ptr object into a new class object at position 8+ (byte 0-7 are used bm internally for ref count and class ID. Altought with reflection it potentially might be more than 2 ints, so check before depending on this)