Remove useless type assertions