Remove unnecessary cast

Change-Id: I66acf110940f8562234461b88d7c97070e0568e4
diff --git a/src/main/java/org/onosproject/segmentrouting/DeviceConfiguration.java b/src/main/java/org/onosproject/segmentrouting/DeviceConfiguration.java
index ef9d444..cea8322 100644
--- a/src/main/java/org/onosproject/segmentrouting/DeviceConfiguration.java
+++ b/src/main/java/org/onosproject/segmentrouting/DeviceConfiguration.java
@@ -80,7 +80,7 @@
             }
             SegmentRouterInfo info = new SegmentRouterInfo();
             info.nodeSid = ((SegmentRouterConfig) cfg).getNodeSid();
-            info.deviceId = ((SegmentRouterConfig) cfg).getDpid();
+            info.deviceId = cfg.getDpid();
             info.mac = MacAddress.valueOf(((
                     SegmentRouterConfig) cfg).getRouterMac());
             String routerIp = ((SegmentRouterConfig) cfg).getRouterIp();