No, it is not possible to transform heat into other forms of energy. Unless you need heat right away (to stay warm) any heat energy is essentially wasted
Tell me, if not by transforming heat, then how is electricity generated?
You obviously don't live in Iceland, where 25% of the power is geothermal. Try this for starters:
Geothermal electricity