Dereference the connection object properly