title: How to cast an object to Enum and get the current value in Java
body: <p>I have a field currently casted to object. I need to check if this field is a type of enum, and if so i would like to get the name of the currently set value. 
  Any ideas would be appreciated.</p>
  
  <pre><code>If(field is an enum){
        get the value of the field
  }
  </code></pre>
  
  <p>Where i am currently at </p>
  
  <pre><code>if (field.getClass().isEnum()){
      String enumValue =  //here i need to cast the field to enum and do something like field.name()
  }
  </code></pre>