Ensure that specified ports are actually integers.