Why is 1 and 0 are returned as string?

With the following:
isUsed: sql<boolean>`case when ${usedExchanges.data} is not null then 1 else 0 end`

I get isUsed as "1" or "0" whereas I would expect a boolean.
Was this page helpful?