remove all old style casts