title: Saving and retrieving int in ImageButton tag
body: <p>I need to save an integer into the tag of an ImageButton. But I am getting a crash each time I try to read the data back.</p>
  
  <p>to save I do, for example,</p>
  
  <pre><code>tokenBtn.setTag(View.INVISIBLE);
  </code></pre>
  
  <p>then to read I do </p>
  
  <pre><code>Integer tag = (Integer) tokenBtn.getTag();
  </code></pre>
  
  <p>Here is the error for <code>getTag()</code></p>
  
  <pre><code> java.lang.ClassCastException: com.bumptech.glide.request.GenericRequest cannot be cast to java.lang.Integer
  </code></pre>