Removes string cast from size check log message