title: Calling setProperty with int but getProperty returns Long on google app engine persistent storage
body: <p>When using this code with DatastoreService I get ClassCastException Long acnnot be cast to integer in fromEntity. Is it normal behaviour? (I get this behaviour when debugging on local computer with google plugin for eclipse)</p>
  
  <pre><code>class UserData {
      private int _integerval = 0;
      private String _stringval = "";
      public Entity getEntity() {
          Entity ret = new Entity( "User", key );
          ret.setProperty( "property1", _integerval );
          ret.setProperty( "property2", _stringval );
          return ret;
      }
  
      public static UserData fromEntity( Entity ent ) {
          UserData ret = new UserData();
          ret._integerval = (Integer)ent.getProperty("property1");
          ret._stringval = (String)ent.getProperty("property2");
          return ret;
      }
  }
  </code></pre>
  
  <p>Do I always have to catch this exception like this:</p>
  
  <pre><code>try
  {
      ret._integerval = (Integer)ent.getProperty("property1");
  }
  catch( ClassCastException ex ) {
      Long val = (Long)ent.getProperty("property1");
      ret._integerval = val.intValue(); 
  }
  </code></pre>
  
  <p>Or maybe all the numeric values are stored as long only? Do I have to change _integerval type to long to avoid this exceprion?</p>