The headphone output of your Mac already has a very capable DAC. But if you want to get a pure digital signal all the way to your amplifier/receiver for its (probably better) DAC to handle it onboard and skip any potential analog interference along the cable path, look for a USB to TOSLINK or SPIDIF adapter. The DAC function only needs to happen once, and it is best that happens as close to the output as possible.