I want to convert List (of Long) to a string array.
Reason: This is a list of database identifiers, and I want the comma delimited string to be passed to the saved process.
I tried this:
Dim commaDelimitedList As String = String.Join(",", itemIDList.Cast(Of String)().ToArray)
but I'm obviously not using Cast correctly, as it throws an exception: System.InvalidCastException: It is not possible to cast an object of type "System.Int64" to type "System.String" ..
Is there a way to get Cast to work for this, or am I sticking with ConvertAll and the delegate function?
source
share