Raise proper errors for type conversion and print proper names for NaN and Infinity