Fix integer conversion compiler warnings that will leak into code using kNet.