Replace True and False with numeric values - SOLVED

Hi to all

Someone knows how to replace true/false entity status with numeric values (eg true=1, false=0)?
For example the status of a switch ?

Pet.

Just cast it to int

{{ true | int }}

TnX Hellis81

Solved

Pet.