Mysql has an IF operator which is similar to the ?: operator in most languages. IF(cond, val_if_true, val_if_false)
INSERT INTO target(SomeCol, BooleanCol)
SELECT SomeCol, IF(BooleanCol IS NOT NULL , IF(BooleanCol = 'true' , 1 , 0) , null)
FROM source