Removed unnecessary cast and version in pom.xml