List<String>? castFn(x) { List<String> r = []; if (x != null) { if (x is List) r = x.map((e) => '$e').toList(); } return r; }