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