Method ToInt32 NamespaceMongoDB.Bson AssemblyMongoDB.Bson.dll ToInt32() Converts this BsonValue to an Int32. public virtual int ToInt32() Returns int An Int32.