remove redundant cast