Converts a string to a Byte value.
[Visual Basic] Overridable Public Function ToBoolean() As Boolean [C#] public virtual bool ToBoolean(); [C++] public: virtual bool ToBoolean(); [JScript] public function ToBoolean() : Boolean;
false if the number to be converted is 0, otherwise true.
The ToBoolean method converts the "true" or "false" Boolean values to the Boolean values of true and false.
This method implements IConvertible, which replaced IValue. This method is used to obtain the type code for a specified object. (See Convert and Value for more information about conversions; see the Type for more information about types.)