How can I cast Long to BigDecimal?
Long
BigDecimal
You'll have to create a new BigDecimal.
BigDecimal d = new BigDecimal(long);