FOutputDeviceMemory::SerializeToBuffer

Serialize cast data to the actual memory buffer