title: Convert String variable to a List [Groovy]
body: <p>How can I convert this <code>String</code> variable to a <code>List</code> ?</p>
  
  <pre><code>def ids = "[10, 1, 9]"
  </code></pre>
  
  <p>I tried with: as <code>List</code> and <code>toList();</code></p>