More elegant way of getting Type's name