remove casts