How can I cast Long to BigDecimal?
Long
BigDecimal
For completeness you can use:
// valueOf will return cached instances for values zero through to ten BigDecimal d = BigDecimal.valueOf(yourLong);
0 - 10 is as of the java 6 implementation, not sure about previous JDK's