fixed unsafe downcasting that caused failures in detecting disconnection of hosts

Change-Id: I767c3361e88ab65d2b40e2b00ff7d76c84ca4f9d
diff --git a/providers/hostprobing/src/main/java/org/onosproject/provider/hostprobing/impl/DefaultHostProbingProvider.java b/providers/hostprobing/src/main/java/org/onosproject/provider/hostprobing/impl/DefaultHostProbingProvider.java
index d590570..522ed20 100644
--- a/providers/hostprobing/src/main/java/org/onosproject/provider/hostprobing/impl/DefaultHostProbingProvider.java
+++ b/providers/hostprobing/src/main/java/org/onosproject/provider/hostprobing/impl/DefaultHostProbingProvider.java
@@ -171,7 +171,7 @@
                     // Remove this location if this is a verify probe.
                     if (hostProbe.mode() == ProbeMode.VERIFY) {
                         providerService.removeLocationFromHost(hostProbe.id(),
-                                (HostLocation) hostProbe.connectPoint());
+                                new HostLocation(hostProbe.connectPoint(), 0L));
                     }
                     break;
                 case PROBE_COMPLETED:
@@ -247,4 +247,4 @@
                 treatment, ByteBuffer.wrap(probe.serialize()));
         packetService.emit(outboundPacket);
     }
-}
\ No newline at end of file
+}