The .* operator is used to dereference pointers to class members.
packet >> rec1.getPosition().x >> rec1.getPosition().y;