Here you can find the source of objToDouble(Object obj)
public static Double objToDouble(Object obj)
//package com.java2s; public class Main { public static Double objToDouble(Object obj) { Double doubleObj = null;// w ww .j a va 2s .c o m if (obj != null) { doubleObj = (Double) obj; } return doubleObj; } }