I use C# asp.net4.
I have a method to populate a Repeater with Anonymous Types (Fields: Title, CategoryId), inside the Repeater I also placed a Label:
Can't you just cast to (typeof(new { Title = "", CategoryID = 0 }))?
(typeof(new { Title = "", CategoryID = 0 }))