This cool little extension comes straight from here: https://stackoverflow.com/a/55796671/879365
This allows us to sort through a sequence container of various instances, looking for ones that match a given protocol.
func filterForInstances<T>(of: T.Type) -> [T]
The type that we are filtering for.
An Array of elements that conform to the given type.