I created a Sub to convert List to Array. Is there another way to do this ?
B4X:
Private Sub List2Array (a_lstArgs As List) As Object()
Dim arrArgs(a_lstArgs.Size) As Object
For i = 0 To arrArgs.Length - 1
arrArgs(i) = a_lstArgs.Get(i)
Next
Return arrArgs
End Sub