This revision enhances the !cast operator so it can cast bit and bits to string. It could already cast int to string.
I added a test for this change.
Note that allowing !cast to handle bit and bits means that the paste operator (#) can concatenate them.
Would it be useful if we can cast bits to the literal string also and not just to its decimal equivalent? e.g. something like
I am not sure if this exists today or any backend needs it.