resolves #632 Fix null cast in boolean type in Postgres platform