It should come out with a good slide hammer and one of them "puller" do dads from HF or similar, and the proper application of muscle to the slide hammer.
Expect that the bearings will be busted and all torn up coming out. Those "puller" do dads really have very little ridge to sit on and the few times I've done this I kinda missed a few and got it on the bearings themselves and tore the cage all up before trying again and getting the race.
I've also read about the welder, which is probably quicker if you have a welder handy and are skilled with it... If not, hammer time.
And I'm sure getting the right size driver and a pipe is also very doable and maybe cheaper than a slide hammer and puller do dad, if you can rent / borrow the puller or have other uses for it, it's probably the quickest and easiest, buying it just for this job, the pipe is cheaper... (but needs enough space to slide into the axle, on both sides?). (Of course, getting pipe the right size, if you don't already have an account at a local steel supplier, that can be a bit of a hassle.)
(You'll probably want the driver kit to get the new ones back in, so you'd probably have that anyways, this also will likely include a lot of hammering, but you don't want to tear up the cage and destroy things.)...
Heat will help if it's stubborn, probably won't be required.