def get_cgi_parameter_int(form: cgi.FieldStorage, key: str) -> Optional[int]:
    """
    Extracts an integer parameter from a CGI form, or ``None`` if the key is
    absent or the string value is not convertible to ``int``.
    """
    return get_int_or_none(get_cgi_parameter_str(form, key))
Extracts an integer parameter from a CGI form, or ``None`` if the key is
    absent or the string value is not convertible to ``int``.