basic: fix ValueError if value of a type='int' is not an int
basic: fix ValueError if value of a type='int' is not an int

With this fix, we get a friendly error message:

    failed: [localhost] => {"failed": true}
    msg: value of argument start_port is not of type int and we were unable to automatically convert

thaim/ansible,thaim/ansible