More compact type function