You should cast to boolean when setting a boolean property