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