The getSource() and getTarget() methods in the ProtonLinkImpl class returns simple Source and Target interfaces with few info from the org.apache.qpid.proton.amqp.transport package.
The real instances used are Source and Target classes from org.apache.qpid.proton.amqp.messaging and in order to use them with Vert.x Proton, an explicit cast is needed.