Transform string to num type
num? toNum({bool nullOnError = false}) => nullOnError ? num.tryParse(this) : num.parse(this);