You can't switch the form that you entered incorrectly. You have to delete the W-2 that you entered mistakenly, and start over entering the 1099-G correctly. Note that there are different places to enter a 1099-G, depending on whether it's for unemployment benefits, a state tax refund, or something else. Be sure to enter it in the right place.