Static
fromAttempt to create an Int32 type from string.
This method will throw a BSONError on any string input that is not representable as an Int32. Notably, this method will also throw on the following string formats:
Strings with leading zeros, however, are allowed.
the string we want to represent as an int32.
A class representation of a BSON Int32 type.