c – Can I treat size_t as a void pointer?

I am working with an external library that is storing void* inside of a queue. For example,

void queue_insert(Queue* queue, void* data);

However, I want to store size_t data inside the queue instead. I can’t pass the address of the size_t data (because it’s locally scoped). I never need to access the data again, though.

In other words, I will be calling these functions

queue_insert(queue, 5);
bool exists = queue_contains(queue, 5);

but I will never be doing the following (because it doesn’t make sense)

void* p = queue_pop(queue);
size_t s = *p;

With that being said, can I pass size_t variables to a function that takes a void*?