title: How to get List from Object in Spring RestTemplate
body: <p>How to get List from Object? Below you can find my code:</p>
  
  <pre><code>ResponseEntity&lt;Object&gt; responseEntity = restTemplate.getForEntity("localhost:8083/connectors/", Object.class);
  Object object = responseEntity.getBody();
  </code></pre>
  
  <p>Actually object variable is a List of Objects(Strings) and I need to get all these Strings. </p>
  
  <p>If I print it out <code>System.out.println(object.toString());</code> it looks like that:</p>
  
  <pre><code>[objvar, values, test, object, servar, larms, aggregates, sink, records]
  </code></pre>
  
  <p>I need to get List of these Strings to dynamic use it. Could you please help?</p>