Automatic recasting

Is there a way to automatically rebuild casts in blueprints after you move a file. I have moved files to a different project but all the casts break and I have to manually go through and delete the old one and add the same cast back so I was wondering if there is a way of doing this automatically?