Fix #54: Invalid Cast to BigDecimal.