debugging datatype conversions