BSONNull class instead of NSNull, which can be used as NSString, NSNumber, responds to methods like integerValue, stringValue, and numberValue as a nil or 0.