Make sure values are integers for certain hardware items for vpshere_guest

Fixes #7180
Merge pull request #7190 from jimi-c/issue_7180_vsphere_guest_hardware_variable_casts

Make sure values are integers for certain hardware items for vpshere_guest