util: Add a func_to_pointer util function too.