def cast_hex(s):
    """Cast a string value to a hex integer.

    Args:
        s (str): String to cast.

    Returns:
        int: Base 16 integer for provided string.

    """
    return int(s, 16)
