Convert smallint to boolean 1