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