there are several types of cast, cast iron and cast steel being common. Cast steel i have welded many times using a 500 degree preheat, and low hydrogen rod (XX18 rod, mostly 11018), and then wrapping it in fiberglass insulation and letting cool very slowly. Preheat small items in the BBQ grill, works well and you can back off the heat over a long period of time.
Cast iron can be tricky, I have seen old timers weld it, braze it and recast it. The best results i have had for none load bearing units is the brazing or silver solder method. Clean it real well and heat it up, apply flux and brazing rod or silver solder.
There are many trick rods to weld the unit together, some work well, some don't, some work on this cast but not on that.
If I weld a cast iron item this is how i do it. Drill the crack, grind out the crack, heat the unit to 200 degrees, weld each side of the crack with lincoln Ni-99 rod and clean with a needle scaler (an air hammer with a dozen needles to remove slag), then weld the crack (this alloys each side before closing the crack up, seems to work better) fill the crack with rod and clean well as you go, Flip the unit over and grind out crack from backside and weld if needed. Then i warm it back up and wrap it with fiberglass insulation, and let it cool slowly
seems to work most days, good luck and let us know ow it works