title: Casting strings to enums
body: <p>Is there a way to cast a string to enum in system verilog ?</p>
  
  <pre><code>typedef enum {ABC1,ABC2,ABC3} abc;
  
  program Test ;
      abc x1;
      string teststring;   
      initial
      begin
          teststring="ABC2";
          x1=abc'(teststring); // Static cast doesn't work
          $display("[%s][%0d]",teststring,x1);
      end
  endprogram
  </code></pre>