Use the address family of the address object to do the conversion, not the family of the socket. This allows for v4-in-v6 socket usage. Change-Id: I4d23b7036207e71f5e70706d621d8ec2b7ca0934