Replace rear deraileur without breaking the chain
You're likely to destroy the derailleur by doing that too many times. 

KMC and Wipperman both have 10 speed quick links which are a better thing to do. Note that you'll need a chain big enough for the larger cassette (or, with a quick link have 2 chains).