NH-3277 - Fix error when casting long to string with ToString method in LINQ