if isinstance(fig, (list, tuple, set)):
            for val in fig:
                figs2keep.append(int(val))