I need to get the type of a call instruction to typecast a (void*) pointer to the type of the function which is called. How can I achieve that?