In Swift, how to cast to protocol with associated type? In Swift, how to cast to protocol with associated type? swift swift