[]
Converts the specified value to a boolean value.
public static bool ToBool(object value)
Public Shared Function ToBool(value As Object) As Boolean
Type | Name | Description |
---|---|---|
object | value | Value to convert |
Type | Description |
---|---|
bool | Boolean value equivalent to the specified value |
Type | Condition |
---|---|
InvalidCastException | Value cannot be converted. |