static Double toDoubleOrNull(O o) { if (o == null) null; if (o cast Number) ret o.doubleValue(); if (o cast BigInteger) ret o.doubleValue(); if (o cast S) ret parseDouble(o); null; }