method getType()