Vanilla Sky borrows themes from similar stories and movies such as Total Recall and countless others... a better movie that deals with this type of phenom is "The Game", or even "Eyes Wide Shut," which, when watched properly, can really screw with your head.