Search
CommonUtils.as<T> Method
See Also
 

Down-casts the object to specified type.

Namespace: com.mindfusion.common
Package: com.mindfusion.common

 Syntax

Java  Copy Code

public static <T> T as (
    Class<T> type,
    Object object
)

 Parameters

type

A Class instance specifying the target type.

object

The object to down-cast.

 Return Value

The object cast to specified type, or null if it's of a different type.

 See Also