Hi the toList() method gives you an error because it dosent Know the type.
You have 2 solutions:
precise the type of the list :
ClassType List = ...
OR
precise the return type:
... }).ToList<ClassType>();
Type is the class type you are working with.
hope it helps