There are two places that try to store values directly in pointers, if possible: closures and interfaces. Use the same functions for both.