RemoteWebElement cannot be cast to IOSElement

Appium version (or git revision) that exhibits the issue: 1.6.1-beta
Desktop OS/version used to run Appium: OS X 10.12.2
Node.js version (unless using|exe): 6.9.1
Mobile platform/version under test: iOS 10.0
Real device or emulator/simulator: simulator
Appium CLI or|exe: Appium CLI
Coding language: java-client 5.0.0-BETA1

I am upgrading from iOS 9.3 to 10.0. So I changed to xcode8 and got the new java-client.
I was frighten to have lot of problems with the migration from the uiautomation to the NSPredicats, but first there occurs some strange cast errors.

AppiumDriver<IOSElement> driver  = new IOSDriver<>(new URL(""), caps);
List<IOSElement> allTravelActions = driver.findElementsById("travelActions.title");

The last line with .click() leads to the following error:

org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.ios.IOSElement

And also in a for each loop this error occurs

ArrayList<IOSElement> top10list = driver.findElementsById("");
for (IOSElement item : top10list){

Does anyone have a hint for me, what I have to change in my old code to get it working with the new XCUITest automation strategy?
Why do I get RemoteWebElements from my AppiumDriver ?