agent: Added cast to sockaddr structure operator