toLong static method
Converts value into long or returns 0 when conversion is not possible.
value
the value to convert. Returns long value or 0 when conversion is not supported.
Implementation
static int toLong(value) {
return LongConverter.toLongWithDefault(value, 0);
}