OZP-770: use toBoolean for coercion to a boolean
OZP-770: fix errors on create, update and delete