Update test/unittest/pointertest.cpp

Co-Authored-By: yhager <yhager@users.noreply.github.com>
diff --git a/test/unittest/pointertest.cpp b/test/unittest/pointertest.cpp
index a26723c..1280c86 100644
--- a/test/unittest/pointertest.cpp
+++ b/test/unittest/pointertest.cpp
@@ -503,7 +503,7 @@
         EXPECT_STREQ("0", q.GetTokens()[1].name);
         EXPECT_EQ(0u, q.GetTokens()[1].index);
         EXPECT_NE(&p.GetAllocator(), &q.GetAllocator());
-        q = static_cast<Pointer>(q);
+        q = static_cast<const Pointer &>(q);
         EXPECT_TRUE(q.IsValid());
         EXPECT_EQ(2u, q.GetTokenCount());
         EXPECT_EQ(3u, q.GetTokens()[0].length);