#5 changing objects types to PeerInterface