Get the int value of this JSON value, or null if other type.
int? get asIntOrNull => value is int ? value as int : null;