getAs

inline fun <Data : Any> getAs(type: String? = null): Data?(source)

Returns the value as Data or null if no data is associated with type.