from typing import List


def ListNumbersToIntInBase(digits: List[int], base: int = 10) -> int:
    """Convert a list of digits into it's integer value into the coresponding base

    Args:
        digits (List[int]): List of digits to convert
        base (int, optional): base to convert. Defaults to 10.

    Returns:
        int: interger value of the number
    """
    val = 0
    exp = len(digits)-1
    for digit in digits:
        val += digit*pow(base, exp)
        exp -= 1
    return val