Converts this instance of a Boolean value to an Int32.
[Visual Basic] Overridable Public Function ToInt32() As Integer [C#] public virtual int ToInt32(); [C++] public: virtual int ToInt32(); [JScript] public function ToInt32() : int;
A value as an Int32.
The ToInt32 method returns an int. It returns a 32-bit, 4-byte signed integer with the converted number.
This method implements IConvertible, which replaced IValue. This method is used to obtain the type code for a specified object. (See the TypeCode enumeration for more information about type codes, Convert, and ToInt32.)