doCast

inline fun <E> doCast(value: Any): E

value 转化为类型 E,如果类型不匹配则抛出 ClassCastException 异常。

Throws

类型不匹配时