Number type conversion functions