git rid of casts