import string


def int2base(int_x, base):
    """
    Convert an integer value (base 10) to another base

    :param int_x: a base 10 integer
    :param base: the base to convert to

    :returns: the number in a different base
    """
    character_set = string.digits + string.ascii_lowercase + \
          string.ascii_uppercase

    if int_x < 0:
        sign = -1
    elif int_x == 0:
        return character_set[0]
    else:
        sign = 1
    int_x *= sign
    digits = []
    while int_x:
        digits.append(character_set[int_x % base])
        int_x //= base
    if sign < 0:
        digits.append('-')

    digits.reverse()
    return ''.join(digits)