from typing import Any


def try_parse_integer(int_to_parse: Any) -> int:
    """
    Tries to parse an integer.
    """
    try:
        res = int(int_to_parse)
    except (TypeError, ValueError):
        res = 10000
    return res