Actually, that was Heinlein's plan for voting rights.

France does the same thing with the French Foreign Legion, and unlike their regular immigration policies, it actually works.