Class CastUtils


  • public class CastUtils
    extends Object
    Author:
    Pavol Loffay
    • Method Detail

      • cast

        public static <T> T cast​(Object object,
                                 Class<T> clazz)
        Casts given object to the given class.
        Type Parameters:
        T -
        Parameters:
        object -
        clazz -
        Returns:
        casted object, or null if there is any error