protected function castBooleans($input):array
    {
        if ($this->castToBooleanIsDisabled()) {
            return [];
        }

        $casted = [];

        foreach ($input as $key => $value) {
            $casted[$key] = $this->castValueToBoolean($value);
        }

        return $casted;
    }