asBooleanOrNull

Returns this value as a JavaScript boolean primitive, or null when it is not one.