title: Convert string to integer in Shopify Liquid?
body: <p>I just read this related answer:</p>
  
  <p><a href="https://ecommerce.shopify.com/c/ecommerce-design/t/how-can-i-convert-a-number-to-a-string-185373" rel="noreferrer">How can I convert a number to a string? - Shopify Design — Ecommerce University</a></p>
  
  <blockquote>
    <p>To convert a string to a number just add 0 to the variable:</p>
    
    <p>{% assign variablename = variablename | plus:0 %}</p>
    
    <p>Not super elegant but it works!</p>
  </blockquote>
  
  <p>Inelegant or not, the answer given there isn't working for me. What's the right way to do this?</p>
  
  <p>Are the Liquid docs really missing such basic answers or am I just not finding the right place to look?</p>