as Object Id
Gets this value as an BsonObjectId if it is one, otherwise throws exception
Return
an BsonObjectId
Throws
if this value is not of the expected type
Gets this value as an BsonObjectId if it is one, otherwise throws exception
an BsonObjectId
if this value is not of the expected type