title: cassandra-driver-mapping: InvalidTypeException: Invalid 32-bits float value, expecting 4 bytes but got 6
body: <p>As I got issues with <code>spring-data-cassandra</code> with <code>docker</code> as describer <a href="https://stackoverflow.com/questions/41108050/unable-to-connect-to-cassandra-from-docker-container-using-spring-data-cassandra?noredirect=1#comment69422977_41108050">here</a> I switched to use <code>com.datastax.cassandra</code> library for cassandra operations but I am getting issues while mapping the resulted object using <code>entity mapper</code> as per this <a href="http://docs.datastax.com/en/developer/java-driver/2.1/manual/object_mapper/using/" rel="nofollow noreferrer">link</a></p>
  
  <p>Here is my code ...</p>
  
  <pre><code>public String getUser(String userName) {
      Mapper&lt;User&gt; mapper = manager.mapper(User.class);
      User result = mapper.get(userName);  // no issue getting User
      String accountNum = result.getAccountId();
      return accountNum ;
  }
  
  public Account getAccount(String accountNum){
      Mapper&lt;Account&gt; mapper = manager.mapper(Account.class);
      Account account = mapper.get(accountNum); // getting error here
      return account;
  }
  </code></pre>
  
  <p>Account.java </p>
  
  <pre><code>@Table(name = "account")
  public class Account {
      @PartitionKey
      private String accountNum;
      private String accountsubtype;
      private float currentbalance;
      private String customertype;
      private String firstname;
      private boolean isactive;
      private String payments;
      private String status;
      ....
      //Getters &amp; Setters 
  }
  </code></pre>
  
  <p>pom.xml dependecies</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.datastax.cassandra&lt;/groupId&gt;
      &lt;artifactId&gt;cassandra-driver-core&lt;/artifactId&gt;
      &lt;version&gt;3.0.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.datastax.cassandra&lt;/groupId&gt;
      &lt;artifactId&gt;cassandra-driver-mapping&lt;/artifactId&gt;
      &lt;version&gt;3.0.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>