I having a problem which I'm not able to resovle. I try to dereference a void pointer but I always get a C2440 error. It says: 'static_cast':void* cannot be converted in wqueue<T>. I tried different cast ways but I always get the same error. Any ideas? As far as I found out I should get the error if I try to dereference without cast but in my case I cast before and still get that error.