Fixed bug related to enum type conversion.  If val is already a number (our target), we were converting back to the stringed name of the enum value.