Just get a good hammer (preferably brass, but knowing not everyone has those) and hit the stud. Make sure you do it dead on so you don't bend 'em. They'll pop out and you can grab em with your fingers or use pliers if they don't come out all the way. One good whack usually works.