Remove redundant type check.