Before installing, carefully compare the switches visually. Look for identical part numbers on the switches themselves. If the part numbers aren't identical, you should research further to confirm compatibility. Even with similar part numbers, a small mechanical or electrical difference could exist.
If you're unsure, taking the old switch to an auto parts store and having them cross-reference the part number is the safest way to ensure compatibility.