Your iMac has a 3.5mm headphone interface you can use for both analog and optical connection. If your receiver has an optical input, you'll need a cable that has TOSlink on one end (for the stereo) and an optical minijack on the other (probably). Otherwise, you can simply use a minijack-cinch cable.