Fixed toDecimal conversion.