Java Object Type Case cast(Object x)

Here you can find the source of cast(Object x)

Description

cast

License

Open Source License

Declaration

@SuppressWarnings("unchecked")
    public static <T> T cast(Object x) 

Method Source Code

//package com.java2s;

public class Main {
    @SuppressWarnings("unchecked")
    public static <T> T cast(Object x) {
        return (T) x;
    }//  w w  w  . j a  v a2 s. c om
}

Related

  1. cast(Object object)
  2. cast(Object object, Class targetClass)
  3. cast(Object source)
  4. cast(Object val, Class type)
  5. cast(Object value, String sqlType)
  6. cast(Object x)
  7. cast(Object[] parameters, Class[] types)
  8. cast(String type)
  9. castAndThrow(Throwable e)