If you don't like the dollar, use a wrapper:
    
    
    template toStr(x: untyped): untyped = $x
    
    toStr(input.type).toUpper
    
    
    Run

Reply via email to