To convert to IR, use an IR lamp, aka heat lamp. IR is heat energy. To convert to microwave, you need a magnetron and a high voltage power supply, as is found in a microwave oven. For the reverse, it is more difficult. IR energy to electric energy, you could use a special solar array tuned to the IR frequencies. Or with enough heat, you can boil water and pipe that into a turbine that drives a generator. Microwave energy, you have to capture it in a dish antenna, and then rectify it to DC electricity.