that is because casting void pointers is necessary in c++, not in C.