code: public static Double toDouble(Object o, Double defaultValue) {
  	if (o instanceof Double) return (Double) o;
  	double dbl = toDoubleValue(o, true, Double.NaN);
  	if (Double.isNaN(dbl)) return defaultValue;
  	return new Double(dbl);
  
      }
docs: cast a Object to a Double Object (reference Type)
  
  @param o Object to cast
  @param defaultValue
  @return casted Double Object