I am certain of when to use static_cast, but often I can get satisfactory results by writing the target type in a parenthesis.
void* data = somePointer; SomeClass* new_ptr = static_cast<SomeClass*>(data);
seems to work when replaced with
void* data = somePointer; SomeClass* new_ptr = (SomeClass*) data;
So could anyone help me out, what the difference in the methods are? :)