[ticket/416] Cast affected rows to boolean

B3P-416