Remove unnecessary cast to TypeInfo.Class.Api that leads to ClassCastException
Remove unnecessary cast to TypeInfo.Class.Api that leads to ClassCastException

vert-x3/vertx-codegen,eclipse-vertx/vertx-codegen