public function getAsInt(string $key, mixed $default = null): int
    {
        if (func_num_args() === 1) {
            $value = $this->get($key);
        } else {