Most heaters are AC and run straight off the mains, making the cord if disconnected pretty dangerous...now if you could find a DC heater....
or, you could swap the end of your heater with the old female c8 plug
and then get a male D plug as well for the run to the wall:
Just make sure it is far from the water for safety reasons