Fixed typecast for boolean data type;