#5 adding cast for PeerInterfaceImpl