Remove redundant cast