[HIP] Add device cast to fix build error (#16505)

diff --git a/experimental/hip/hip_device.c b/experimental/hip/hip_device.c
index 4093020..c0f203a 100644
--- a/experimental/hip/hip_device.c
+++ b/experimental/hip/hip_device.c
@@ -382,6 +382,7 @@
 static iree_status_t iree_hal_hip_device_query_i64(
     iree_hal_device_t* base_device, iree_string_view_t category,
     iree_string_view_t key, int64_t* out_value) {
+  iree_hal_hip_device_t* device = iree_hal_hip_device_cast(base_device);
   *out_value = 0;
 
   if (iree_string_view_equal(category, IREE_SV("hal.device.id"))) {