Fix the narrowing warnings that were appearing on windows tiles builds

See #3141