My app is made out of 2 plugins.
For each plugin I declared a class called TYPE since I need a custom data-type for ArrayList's. The class TYPE is identical for either of the plugins.
The scenario is the following:
Plugin1.TYPE - Plugin2.TYPE
Plugin1.ArrayList<TYPE> - Plugin2.ArrayList<TYPE>
Now I'd like to assign the content of Plugin1.ArrayList in the Plugin2.ArrayList, but even though the class TYPE is identical, I get an issue with cast.
Basically, even if the two classes have the same content they are considered as different entities and so the cast exception pops up.
plugin1.TYPE cannot be cast to plugin2.TYPE
Any help? How can I deal with it?