public function convertToBool($answer)
    {
        if (!$this->caseSensitive) {
            $answer = strtoupper($answer);
        }

        // If it equals confirm yes
        if ($answer == $this->confirmYes) {
            return true;
        }

        if ($answer == $this->confirmNo || $this->explicit === false) {
            return false;
        }

        $this->output->writeln($this->invalidConfirmationError);
    }