title: How to convert a List(of Long) into a string array? (VB)
body: <p>I want to convert a List (of Long) into a string array.</p>
  
  <p>Reason: it's a list of database IDs and I want to make a comma delimited string to pass into a stored proc.</p>
  
  <p>I tried this:</p>
  
  <pre><code>Dim commaDelimitedList As String = String.Join(",", itemIDList.Cast(Of String)().ToArray)
  </code></pre>
  
  <p>but I'm clearly not using the Cast correctly since it throws an exception:
  <em>System.InvalidCastException: Unable to cast object of type 'System.Int64' to type 'System.String'..</em></p>
  
  <p>Is there a way to get Cast working for this, or am I stuck with ConvertAll and a delegate function?</p>