Method ToInt64 NamespaceMongoDB.Bson AssemblyMongoDB.Bson.dll ToInt64() Converts this BsonValue to an Int64. public virtual long ToInt64() Returns long An Int64.