You can't actually turn into Shadow the Hedgehog.
Shadow is his own distinct character, so rather than transforming into him, you'd play as him directly when the game allows it.