Not a question, not a bug... just a strange... fact.
B4X:
Sub Activity_Create(FirstTime As Boolean)
Dim MyObjects(3) As clsMyClass
MyObjects(0).Initialize(0)
MyObjects(1).Initialize(1)
MyObjects(2).Initialize(2)
LogArr("MyObjects", MyObjects) ' THIS IS OK
Dim arrInt(3) As Int
arrInt(0) = 0
arrInt(1) = 1
arrInt(2) = 2
LogArr("arrInt", arrInt) ' INVALID CASTING here
End Sub
Sub LogArr(ArrName As String, Arr() As Object)
LogColor(ArrName, Colors.Red)
For Each obj As Object In Arr
LogColor(obj, Colors.Red)
Next
End Sub