remove redundant casts when extract changed parameter type accordingly (IDEA-79743)