Separating an object from its cast