If you didn't specifically tell the Forge profile of your launcher to use a non-default Game Directory all worlds and settings will be shared between vanilla and forge.
In other words, your world didn't "transfer", it just became shared.
Also, it's not recommended to bring a modded world back to vanilla.