replaced casting for settype function
Merge branch 'master' of github.com:nilportugues/validator