safeCast

abstract fun safeCast(value: Any): E?

将一个实例转化为 E 实例。 无法转化得到null。

Just like JVM KClass::safeCast.