Property AsInt32 NamespaceMongoDB.Bson AssemblyMongoDB.Bson.dll AsInt32 Casts the BsonValue to an Int32 (throws an InvalidCastException if the cast is not valid). public int AsInt32 { get; } Property Value int