Converting integers to booleans

I have a dataset that contains a variable whose values are exclusively 0 and 1. When I set the type of the variable to “Boolean” in the File Reader node, it reads every row as “False”, including the 1’s. Is there a simple way to convert this variable to Boolean without using a dictionary?

Or, is there a way to read the variable as binary and use it for stratified sampling, classification trees, etc. without converting it to a Boolean?

Did you try Rule Engine node?

I didn’t think the Rule Engine could return booleans, but it turns out it can. Learned something today.

I didn’t know about that node, that worked great! Thanks