metadataOrNull

inline fun <T> metadataOrNull(): T?

Returns the metadata as the given type T.