Fix type in IPAddress if stmt