title: Cannot convert list of dto to list of dynamic
body: <p>How can I make this to work? It giving me an error cannot <code>implicitly convert</code>. I have lots of DTO on my WebApp and I need a placeholder variable.</p>
  
  <p>NOTE: This is not the actual code on my WebApp, this is just the same idea on what I want to do.</p>
  
  <pre><code>public class DTO1
  {
      public int Id { get; set; }
      public string Name { get; set; }
  }
  
  public class DTO2
  {
      public int Id { get; set; }
      public string Name { get; set; }
  }
  
  public class DTO1Service
  {
      public static List&lt;DTO1&gt; GetListOfDTO1()
      {
          return new List&lt;DTO1&gt;
          {
              new DTO1 { Id = 1, Name = "DTO 1" },
              new DTO1 { Id = 2, Name = "DTO 2" }
          };
      }
  }
  
  public class DTO2Service
  {
      public static List&lt;DTO2&gt; GetListOfDTO2()
      {
          return new List&lt;DTO2&gt;
          {
              new DTO2 { Id = 1, Name = "DTO 1" },
              new DTO2 { Id = 2, Name = "DTO 2" }
          };
      }
  }
  
  public class Program
  {
      public static void Main(string[] args)
      {
          var entities = new List&lt;dynamic&gt;();
  
          var serviceType = Console.ReadLine();
  
          if(serviceType == "1")
              entities = (dynamic)DTO1Service.GetListOfDTO1();
          else if (serviceType == "2")
              entities = (dynamic)DTO2Service.GetListOfDTO2();
  
          Console.ReadLine();
      }
  }
  </code></pre>