get type out of kind