Hi
I got a list of objects like this
ArrayList <Page> pageList = aForeignObject.getAllPages();
And a child class
class MyPage extends Page
{
public void newFunction()
{
// A new Feature
}
}
Is it possible somehow to convert the Page objects into MyPage objects?
I would love to do sth like this:
MyPage page = pages.get(1); // This will obviously fail
page.newFunction();