protected function convertBoolean($rawValue) { if (is_string($rawValue)) { return strtolower($rawValue) === 'true' ? true : false; } return (bool) $rawValue; }