static int toIntOpt(O o) { if (o == null) ret 0; if (o instanceof Number) ret ((Number) o).intValue(); if (o instanceof S) ret parseIntOpt((S) o); ret 0; }