Try to not use else.

```java
if (content instanceof List) {
  return from((List<String>)content).toArray(String.class)
}

return new String[]{(String)content}
```

BTW valueArray is not a good name and values is better.