Changing Mask Bits Dynamically

After a body has been created, can its mask bits/ category be changed? I have been trying things to make a body become uncollidable like:

Code:
                                      b.m_shapeList.m_filter.groupIndex = -1;
         b.m_shapeList.m_filter.maskBits = 0x0000;


but it isn't working.

Can anyone tell me how to achieve this?
viewtopic.php?f=8&t=1526

This thread talks about the same thing... You need to make a call to m_world.Refilter()

(I may have got the name of function wrong, am at work and can't look it up, but reading that thread should give you a better idea)..

Original thread: https://box2d.org/forum/viewtopic.php?t=1537