Fix BigDecimal Typecast on 1.8.7
Merge pull request #9223 from robertomiranda/fix-bigdecimal-typecast

Fix BigDecimal Typecast on 1.8.7