So can I get my BTC back by logging into mainnet?
No. There is no direct link between testnet BTC and mainnet BTC. Owning coins on testnet does not mean you own an equivalent amount of coins on mainnet. Further, testnet coins are worth nothing.
To log in to mainnet with Electrum, you need to remove the --testnet startup option. Which operating system are you using?