Delete everything unnecessary for casting and debugging