Simple generic data type conversions