When a user attempts to convert a pmt to an invalid type, we should print an error message that includes the desired type and the actual type in plain english. This will be very valuable for debugging.
Also we need to make sure that for convertible types, that we just do the conversion. For example, a float can be converted to a double, so we shouldn't raise an error there. Make sure this is the case.
When a user attempts to convert a pmt to an invalid type, we should print an error message that includes the desired type and the actual type in plain english. This will be very valuable for debugging.
Also we need to make sure that for convertible types, that we just do the conversion. For example, a float can be converted to a double, so we shouldn't raise an error there. Make sure this is the case.