title: I am trying to convert a javascript Number type to a BIGINT to be passed to a Postgres table
body: <p>I have a BIGINT I need to store in a Postgres table. I am using a rest API and have no issue passing in the javascript Number type on row creation but when I try and update it I get this error:</p>
  
  <pre><code> "Error: invalid input syntax for integer: \"\" 
  </code></pre>
  
  <p>Is there a way to cast this type? I tried using math.js with no luck so far. Any suggestions or help would be appreciated.</p>