Your MacMini already has an optical output, unless it's a really early G4 model.
The optical out is combined with the 3.5mm analogue output, good for 96kHz 24bit; it will also pass Dolby Digital and DTS 'encoded' digital audio.

All the best,

Steve.