Merged marshalling/unmarshalling methods into core interface.