Native type conversion functions