Interface Castable

    • Method Detail

      • as

        default <T> T as​(java.lang.Class<T> type)
        Type Parameters:
        T - is the given type.
        Parameters:
        type -
        Returns:
        the current Castable as instance of the given type.
        Throws:
        java.lang.ClassCastException - if the current Castable is not of the given type.