Cast void* to fn return pointer type.