Jinja template in Airflow always change value to String

For Airflow < 2.1.0: Rendering templated fields is always string.

For Airflow >= 2.1.0: There is support for rendering fields as native Python Objects. You will need to set render_template_as_native_obj=True in the DAG object. You can read more about it in the docs.