You could also just use a simple transistor and a couple of resistors to do the switching.
Using the Arduino pins would be ok if the voltage is less than 5 Volt AND the current is less than 40mA., but i would go for the transistor solution.
Check this :SECARS Homepage - SECARS or google "transistor as switch", it's not complicated at all.