def map_int(to_int) -> int:
    """Maps value to integer from a string.

    Parameters
    ----------
    to_int: various (usually str)
        Value to be converted to integer

    Returns
    -------
    mapped_int: int
        Value mapped to integer.

    Examples
    --------
    >>> number_one = "1"

    >>> error_value = "will cause error"

    >>> one_to_float = map_int(number_one) # will convert to 1

    >>> error_to_float = map_int(error_value) # will cause exception
    """
    try:
        mapped_int = int(to_int)
    except ValueError:
        raise ValueError("Integer Value Expected Got '{}'".format(to_int))

    return mapped_int