@SuppressWarnings("unchecked")
  public static <T> T uncheckedCast(final Object object) {
    return (T) object;
  }
Utility methods applicable to (almost) any object. Includes null-safe variants of methods on class Object.
spock-core/src/main/java/org/spockframework/util/ObjectUtil.java