If I have a dynamic object, or anonymous object for that matter, whose structure exactly matches that of a strongly typed object, is there a .NET method to build a typed obj
Here we can convert an anonymous object to Dictionary
Dictionary dict = obj.GetType() .GetProperties() .ToDictionary(p => p.Name, p => p.GetValue(obj, null));
Also you can cast an object using LINQ:
List items = anonymousType.Select(t => new MyType(t.Some, t.Other)).ToList();