Maybe you're doing this for emphasis, but (void*)this is redundant; any pointer will implicitly cast to void*.