The most definition for switch in a sexual aspect is gravitating from Dom to sub, back and forth as your personality, moods, or sexual direction may call for.
The idea of roleplaying male and/or female characters respectively that are not your gender is called cross-roleplaying, I believe?
EDIT: Ack! -squeezes Saff- Tricksy, so quick!