Thanks to a quick Google search, I came up with this command from MacOSX Hints:
Code:
hdiutil convert /path/to/filename.dmg -format UDTO -o /path/to/savefile.iso
EDIT: Sorry if I wasn't more specific. I meant that you should type that into a terminal (while changing the /path/to/ stuff)