*jedi trick* You don't need a List<UITechnician>... just using List<Technician> is absolutely fine.
I'm not sure if this works in your case but I think you can step through the list and cast each item to UITechnician. Use ConvertAll or Cast
list.Cast<UITechnician>().ToList()
so .Cast can succeed where (CastType)OtherType might not?
I think .Cast will also throw a InvalidCastException
Обсуждают сегодня