A continuity method for sweeping processes