This is because GH_Number is a wrapped GH_goo class, and .NET does not know how to work out how one GH_Number is bigger than another. To fix this you can put a selector function as an argument to the Linq.Max method. This then returns the largest double, so to get a GH_Number simply build a new GH_number from the max double. Like so: