cout << *static_cast<int*>(test);
test is a void pointer pointed to an int variable.
if i use:
cout << *static_cast<char*>(test);
i get just 1 character.
so how can i print the value directly to string?
if i use the string i get an memory error