How do people actually extract a ROM from a cartridge? Is there some kind of wire to link a NES cartridge to USB or something?

Small question, though was wondering over it for a time.