A switch doesn't care what voltage is on it, with exception to specialty high voltage switches where arcing can be a problem, and lighted switches. The voltage rating relates to the current rating. IE, a switch may be rated for 10a at 120vac, and 5a at 240vac. Ratings for ac and dc are different as well (arcing when the contacts break).