Fix integer conversion

Fix conversion of integer value before it gets converted into boolean