support for apply to pointers to interface{}