Relating Green-Schwarz and Extended Pure Spinor Formalisms by Similarity Transformation