remove redundant casting