double to long
obj to double
obj to long
instance of
Bigdecimal
public static void main(String[] args) throws ParseException { Object obj1 = 1234; Object obj2 = 1234.1; BigDecimal a = new BigDecimal(obj2.toString()); System.out.println(a.longValue()); }