Added test and better handling of decimal data casting; particularly, when a non-number value is passed.