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