remove unnecesary casting
Merge pull request #1250 from diegosarmentero/issue1224

remove unnecesary casting