The replacement of 'int' with 'size_t' caused a number of errors across multiple platforms in our CI system.  The culprit is not obvious, so I am reverting the commit until we can take a closer look at the underlying issue.

Revert "1. Attempted to reduce the number of conversion errors"

This reverts commit 1b941d342d5614aec5f55f819c0ee590e8bd3d6e.