Added cast to void* for functions.