nd4j-common/src/main/java/org/nd4j/util/ReflectionUtils.java
@SuppressWarnings("unchecked")
    public static <T> Class<T> getClass(T o) {
        return (Class<T>) o.getClass();
    }
@SuppressWarnings("unchecked")
    public static <T> Class<T> getClass(T o) {
        return (Class<T>) o.getClass();
    }
@ SuppressWarnings ( "unchecked" ) public static < T > Class < T > getClass ( T o ) { return ( Class < T > ) o . getClass ( ) ; }
Return the correctly-typed {@link Class} of the given object.

@param o object whose correctly-typed <code>Class</code> is to be obtained
@return the correctly typed <code>Class</code> of the given object.
Return the correctly - typed { @link Class } of the given object .