provide the utility function_ptr_cast for casting between void* and function ptrs without a warning