remove some unused cast