How might i convert a .dmg file to iso format so that i can burn it to disc?

Or a way to extract the .dmg file using WINRAR or similiar program so that i can create an ISO for it manually.

any advice?