safeCast

inline fun <R> Flow<*>.safeCast(): Flow<R?>(source)

Adapt this Flow<*> to be a Flow<R?>. At the collection time, if this Flow has any value that is not an instance of R, null will be emitted.