In Sonic Heroes, press the A button to switch to any character on your team.
Since you control a team of characters with different abilities, tapping A lets you cycle between them so you can use each one's strengths as you go.