You should wrap the variable in a Boolean.valueOf() call.