Remove duplicated type assertions