How to convert the string to integer in jinja? [duplicate]

Solution
{% if  today.lunch_time[:2]|int >12 %}
    

Lunch Time : {{ today.lunch_time[:2]|int - 12}} PM

{% else %}

Lunch Time : {{ today.lunch_time}} AM

{% endif %}