Method ToInt32 NamespaceMongoDB.Bson.IO AssemblyMongoDB.Bson.dll ToInt32(string) Converts a string to an Int32. public static int ToInt32(string value) Parameters value string The value. Returns int An Int32.