convert enum TType into enum class