remove useless cast