Remove redundant type casts.