Just to add.
for a newer e39..(facelift model) the catalytic converter in incorporated into the manifold...I doubt that the picture on the first page of this thread is pointing to the right parts. It looks more like mid silencer to me..as you can see in M54 engine, you have pre cat and post cat O2 sensors.
Just my 2 cents