To get mine off I had it off the car then got the old pipe very hot (glowing) but if you are not careful you can easily knacker it up, though I do have a new bosch lamda sensor if you're interested.
Just get it nice and hot, remember the exhaust gets very hot when the car is being driven. I applied a bit of heat to mine and it came out really easily, I was actually surprised!!