Most elegant way to get from (ex) to (void *)?