Fixing type conversion for boolean parameters