ly common REFACTOR cast warnings
diff --git a/tests/utests/schema/test_schema.c b/tests/utests/schema/test_schema.c
index 2dd7f6d..953aad8 100644
--- a/tests/utests/schema/test_schema.c
+++ b/tests/utests/schema/test_schema.c
@@ -1712,7 +1712,7 @@
     LY_ARRAY_NEW_GOTO(UTEST_LYCTX, ext_p.substmts, substmtp, rc, cleanup);
 
     substmtp->stmt = LY_STMT_ERROR_MESSAGE;
-    substmtp->storage = &ext_p.parsed;
+    substmtp->storage = (uintptr_t)(void *)&ext_p.parsed;
     /* fake parse */
     lydict_insert(UTEST_LYCTX, "my error", 0, (const char **)&ext_p.parsed);
 
@@ -1721,7 +1721,7 @@
     LY_ARRAY_NEW_GOTO(UTEST_LYCTX, ext_c.substmts, substmt, rc, cleanup);
 
     substmt->stmt = LY_STMT_ERROR_MESSAGE;
-    substmt->storage = &ext_c.compiled;
+    substmt->storage = (uintptr_t)(void *)&ext_c.compiled;
 
     /*
      * error-message