asBoolean

Asserts that this value is a boolean.

In case this expression is not a boolean, each of the fallbacks is evaluated in order until a boolean is obtained. If none of the inputs are booleans, the expression is an error.