Returns num, if the underlying value is numeric, be it int uint, or float (direct or indirect).
Otherwise returns null.
null
num? get numValue => doubleValue ?? intValue;