If the value passed into the set method is already === true or === false then just use it. Otherwise, use the validator.toBoolean() method.