If object is double then return it otherwise throw FormatException
double asDouble([double? defaultValue]) { return _getValue<double>(defaultValue); }