Disable collisions for an object

Hello,
This seems like a simple question but I'm not sure how to do it. I'd like to disable an object's collision at certain times in the game. I tried setting its 'Enabled' property to false, but that made it lose all forces. I'd like it to maintain any forces that has been applied to it (and to be affected by other forces), but I don't want it to collide with anything. How would I do this? Thank you
Use collision filtering. It allows you to specify with what bodies a certain body can collide. For example, this will cause a body whose fixture definition is fd to not collide with anything (including edges):

b2FixtureDef fd;
fd.filter.maskBits = 0x0000;

You can read more about it in the Box2D manual
Thanks a lot!

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