Cast iron is not ductile at any temperature. So it wont slump however
long you heat and how high the temperature you take it to.
Alter the fireplace back to suit.
Or get a iron smith to make an edged frame that fits the fireplace
as well as the fire back.