public static double ToDouble(this object anObject) { double ret = 0; try { ret = Convert.ToDouble(anObject); } catch (Exception) {} return ret; }