Here you can find the source of objToBigDecimal(Object obj)
public static BigDecimal objToBigDecimal(Object obj)
//package com.java2s; import java.math.BigDecimal; public class Main { public static BigDecimal objToBigDecimal(Object obj) { BigDecimal bigDec = null; if (obj != null) { bigDec = (BigDecimal) obj; }/*from www. j av a2s . com*/ return bigDec; } }