Use __typeof__ since typeof is unavailable in our build