In the runtime services they is a type called MarshallUtils that allows you to marshall a struct to a byte[] and back, alternatively use the ILSMARTLINKAGE directive and this will generate extra types for any linkage section items...both are documented.
↧