title: java.lang.ClassCastException: [B cannot be cast to java.util.List when using Redis
body: <p>I have the following code : </p>
  
  <pre><code>jedis.mget(objects.toArray(new String[objects.size()]));
  </code></pre>
  
  <p>where objects is a list of string. The code runs fine most of the time. But unexpectedly raises following exception.</p>
  
  <pre><code>java.lang.ClassCastException: [B cannot be cast to java.util.List
  at redis.clients.jedis.Connection.getBinaryMultiBulkReply(Connection.java:221)
  at redis.clients.jedis.Connection.getMultiBulkReply(Connection.java:214)
  at redis.clients.jedis.Jedis.mget(Jedis.java:383)
  </code></pre>
  
  <p>If i run the same code again it runs fine with same data. Can't understand the reason for such issue.</p>