Best of luck replacing the switch without fluid running all over everything! Been there, done that, bled the brakes afterward!
If your pressure switch is like the one I have, it makes contact when the system is pressurized. Converting to a mechanical switch that makes contact with the pedal depressed should be no problem at all; just use the same wires.