Exactly which make and model DAC do you want to interface with?
The 2015 iMac does digital audio via optical output at its headphone jack. You can find 3.5mm mini optical cable if you search Amazon or google it. Cables and adapters for mini optical and TOSLINK are available.
Another option for getting digital audio out of a Mac is some flavor of USB audio converter. Again, if you search Amazon or google it, there are many to choose among.
Some do USB to 3.5mm analog headphone output. Some are USB to SP/DIF optical output. Mono Stereo. Whatever you need.
If you explain exactly what your end game is, users here can offer more specific guidance.