Added gsl::narrow calls where MSVC warned about numeric conversions that could potentially lose information.