getSize($path) always returns integer

Make sure the size of a file is always an integer value. 
For S3 was coming out a string and for the local file system was coming out an integer.