Only way I can think of is to render twice, once with the object set to cast shadows, once with it set to cast no shadows, then use a mask to composite the shadow version of the object only over the scene with it set to cast no shadows. The snag I can think of there is that reflections could be tricky, e.g. the reflections would still show shadows cast by the object into the scene.