Method ToBool ToBool() Returns the objects value converted to a boolean. Only applicable for objects of type Number. Declaration bool ToBool() Returns Type Description bool true if the object contains a non zero value; otherwise false