Here you can find the source of toDouble(Object o)
public static Double toDouble(Object o)
//package com.java2s; //License from project: Open Source License public class Main { public static Double toDouble(Object o) { if (o == null) { return null; }/*from w ww . j av a2s.c om*/ return Double.valueOf(String.valueOf(o)); } }