How can I use a toggle switch with Arduino ?

It's a mechanical switch - it makes no difference. If you have a multimeter with a diode test function, or if you build a little led circuit using the Arduino's 5v and gnd pins, then you can figure all this out for yourself. You wont break anything.