title: Android: cannot convert from String to Editable
body: <p>A quick question:</p>
  
  <p>I am getting the error : cannot convert from String to Editable.
  Here is the code :</p>
  
  <pre><code>Credential.getInstance().UserName = preferences.getString("UserName", "invalid value");
  Credential.getInstance().Password = preferences.getString("UserName", "invalid value");
  </code></pre>
  
  <p>I've also tried casting like following:</p>
  
  <pre><code>Credential.getInstance().UserName = (Editable) preferences.getString("UserName", "invalid value");
  Credential.getInstance().Password = (Editable) preferences.getString("UserName", "invalid value");
  </code></pre>
  
  <p>This time I am getting error : Cannot cast from String to Editable.</p>
  
  <p>What to do?</p>