Used List<MapPdf> to var : I have a program that I used a variable of type List<MapPdf> that I will detach in variables when filling I would like to have the possibility to use it another time but I did not have the right to identify it again as <MapPdf>


       public static void Create(List<MapPdf> pps, Saison s, Agence agence)
       {
        foreach (var pelerins in grouped)
                            {
                                if (string.IsNullOrEmpty(pelerins.Key) || pelerins.Count() <= 0)
                                    break;
                                if (writer.PageEvent == null)
                               {
                                writer.PageEvent = new Header_List()
                                {
                                    travel = ctx.Travels.Include("Transport").First(v => v.UniqueId == pelerins.Key),
                                    travelretour = ctx.Travels.Find(pelerins.First().UniqueIdRetour),
                                    Agence = agence,
                                    CountAllPelerin = pelerins.Count().ToString(),
                                    CountFeminin = pelerins.Count(x => x.Sexe == PelerinSexe.Feminin).ToString(),
                                    CountMasculin = pelerins.Count(x => x.Sexe == PelerinSexe.Masculin).ToString(),
                                    NomGroupe = pelerins.First().Groupe,
                                    NumeroDoc = writer.PageNumber
                                };


                            }
           }
       } 

And i want to use pls as a List<MapPdf> when i used in another function when it is of this declaration
             CreateFr(pls, false, cb,  s);

I used List < MapPdf > pls = pelerins.ToList(); but it does not work 

