title: Convert string to List<Long>
body: <p>I have a string with comma separated value that I am getting direclty from database. Now I want to pass that entire string to another query but the datatype required is long and i want to use in clause to get this done.</p>
  
  <pre><code>str1 = [123,456,789];
  </code></pre>
  
  <p>Is there any direct way to do it instead of looping.</p>