Simplify getTypeName