fun <reified R> MongoIterable<*>.filterIsInstance(): List<R>
(source)
Returns a list containing all elements that are instances of specified type parameter R.
fun <R> MongoIterable<*>.filterIsInstance(klass: Class<R>): List<R>
(source)
Returns a list containing all elements that are instances of specified class.