So it's not a pipe thread. Take out the switch and go to the hardware store and see if you can find the shortest bolt in the same thread as possible. It probably does not exist. If it does you'll need an O ring or a brass copper crush washer to seal it.

Too long of a bolt will interfere with the shift mechanism