Cleanup casts