basicTypeCast<T extends Object?> function

T? basicTypeCast<T extends Object?>(
  1. Object? value
)

Handle int, num, double, String, bool

bool non 0/null nom value are converted to true int, double num are rounder to int if needed

Implementation

T? basicTypeCast<T extends Object?>(Object? value) {
  if (value == null) {
    return null;
  } else {
    return _nonNullBasicTypeCast<T>(value);
  }
}