java.lang.Object cannot be cast to com.tripi.asp.Node

java.lang.Object cannot be cast to com.tripi.asp.Node

Good afternoon to everybody.

I have some arrays which its type are Variant. They came from another function. I need to pass those arrays to another function or subrutine, but when I try to add them throught a parameter, the program crash and give me the following msg:
java.lang.Object cannot be cast to com.tripi.asp.Node