code: func (p *rpcPeer) ToPeer() *peer.Peer {
  	if p == nil {
  		return nil
  	}
  	return (*serverPeer)(p).Peer
  }
docs: // ToPeer returns the underlying peer instance.
  //
  // This function is safe for concurrent access and is part of the rpcserverPeer
  // interface implementation.