Skip to main content

Build throws TypeError e.toNumber is not a function at Function.System.Int64.toNumber

The error:

TypeError: e.toNumber is not a function at Function.System.Int64.toNumber

This may be due to Luna not supporting implicit casting of long int into float.

Possible solution:

  • Apply the Convert.ToDouble() method explicitly, then cast the result to the float type.