|The easiest way to cast in C++ is to just use a C style cast. It looks better, too.|
I tried static_cast,reinterpret_cast but in compling it gives error.
It's hard to tell what you're doing wrong without the code or error.
How To Ask Questions The Smart Way