Replacing the brake light switch?

I managed to get it out! I couldn't get the line wrench or the hose clamp trick to work, so I put it in a vise and wacked it with a hammer and it popped right out. To install the new one I used a 7/16 socket and gave it a couple good wacks with that same hammer and it went right in, and believe it or not it's still in one piece no worse for the banging:BangHead:

Thank as always for your help guys!