I have extended my entities to implement specific interfaces for its type. I am trying to perform the following query:
var results = from x in context.MyEnt
return results.Count() > 0 ? results.Select(result => (IApplicationEntity)result) .ToList() : null;