Android Question A quick way to conversion types

mazezone

Member
Licensed User
Longtime User
B4X:
Dim PlayList As List
PlayList.Add(CreateMap("test": "support"))

PlayList.Get(0).Get("test") ' <-- Error

toMap(PlayList.Get(0)).Get("test")  ' <-- Good

Sub toMap(o As Object) As Map
   Return o
End Sub

Are there any built-in functions like toMap in B4X ? (toInt, toStr, etc.).
 
Top