sS firstString(Iterable i) { if (i != null) for (O o : i) if (o cast S) ret o; null; }