Typecasting booleano para inteiro:
SELECT CAST(1=1 AS SIGNED INTEGER); /* 1 */
O mesmo para decimal e strings:
SELECT CAST("1.23" AS SIGNED INTEGER); /* 1 */
SELECT CAST(1=1 AS SIGNED INTEGER); /* 1 */
SELECT CAST("1.23" AS SIGNED INTEGER); /* 1 */