title: How can I convert console.readline to enum?
body: <p>I have this enumeration for the days of the week. I have the variable &quot;weekday&quot; to convert it to the enum type. When I want to enter the day by keyboard, I get the error &quot;Cannot implicitly convert the string type to NameDia.CS.Program.Days&quot;</p>
  <pre><code>**namespace NombreDia_CS
  {
      class Program
      {
          enum Dias
          {
              Domingo = 1,
              Lunes,
              Martes,
              Miercoles,
              Jueves,
              Viernes,
              Sabado
          }
  
          static void Main(string[] args)
          {
  
              Dias diaSemana;
  
              Console.WriteLine(&quot;Ingresar un valor numerico: &quot;);
  
              diaSemana = Console.ReadLine(); //the error here
              
  
              
          }
      }
  }**
  </code></pre>