I found the solution of this finally actually there was no need to do :
ICollection<Parameter> list = parameter as ICollection<Parameter>;// **Problem creating line**
List<UIElement> result = new List<UIElement>();
we can directly use parameter object obtained from :
Parameter parameter = (Parameter)deserializer.Deserialize(reader);
and put if() conditions to access the desired xml elements/Class value(or you can say node) there is no need of creating list.