Update IntegerType.php

if value is not numeric ("D" for example) then return "D" and not (int)"D" which would result in "0".
then if you have a "numeric" and "naturalNumber" validation rule it would fail and you could return an error message like "Value is not a valid number"
it works in my project perfectly.