Invert any object