@SuppressWarnings("unchecked")
	public static @Nullable <T> T as(Object object, Class<T> cls) {
		return cls.isInstance(object) ? (T) object : null;
	}
@ SuppressWarnings ( "unchecked" ) public static @ Nullable < T > T as ( Object object , Class < T > cls ) { return cls . isInstance ( object ) ? ( T ) object : null ; }
Attempts to cast <code>object</code> to class <code>cls</code>.
Returns <code>null</code> if cast is impossible.