Just go back through Luigi's door.
The character swap works both ways — the same door that turned Yoshi into Luigi will turn him back when you re-enter it.