remove some unused cast
Merge pull request #588 from betheg/remove_unused_cast

remove some unused cast