Use appropriate type for marshal data