Handle VirtualObj.AsFunction with user-defined types as value.