ref have reference semantics, meaning 2 refs are only equal if their 
reference/pointer are equal.

2 refs having the same content do not mean they are equal.

In short `==` does what you want, no need to cast to a pointer. This is one of 
the main reason to use reference semantics after all. I.e. 2 persons having 2 
arms and 2 legs do not mean they are the same person or 2 memory locations 
having the same size and all zeros do not mean they are the same.

Reply via email to