---
title: "Comment by Gary McMeekin on \"Code Smell 160 - Invalid Id = 9999\" | Hashnode"
description: "Isn&#39;t there a boolean-to-int conversion and that will result in a valid domain object of 0 (zero)? Maybe C handles this better than Javascript does."
url: "https://hashnode.com/posts/code-smell-160-invalid-id-9999/630e073656df9e8e50255fe0/comment/630f4ea575af73ad1f060e85"
---

[Discussion](https://hashnode.com/posts/code-smell-160-invalid-id-9999/630e073656df9e8e50255fe0)

Comment [Code Smell 160 - Invalid Id = 9999](https://hashnode.com/posts/code-smell-160-invalid-id-9999/630e073656df9e8e50255fe0)

[Gary McMeekin](https://hashnode.com/@garymcm)

[Aug 31, 2022](https://hashnode.com/posts/code-smell-160-invalid-id-9999/630e073656df9e8e50255fe0/comment/630f4ea575af73ad1f060e85)

Isn't there a boolean-to-int conversion and that will result in a valid domain object of 0 (zero)? Maybe C handles this better than Javascript does.
