I am calling a method that returns a List variable that contains a c# Anonymous Type objects. For example:
List list = new List()
replacing object with var in for each construct may work