def convert_arg_to_int(cmd_args):
    """Convert str to int as much as possible
    :param cmd_args: the sequence of args
    :return the sequence of args
    """
    args = []
    for arg in cmd_args:
        if isinstance(arg, str):    # Int will cause TypeError
            try:
                arg = int(arg, 0)
            except ValueError:
                pass    # Unable to convert
        args.append(arg)
    return args