So I have two arrays
var arrayOne:Array<protocol<P1,P2>>
var arrayTwo:Array<P1>
Where P1 and P2 are protocols.
Question is how to make downcasting operation
arrayTwo = arrayOne as Array<P1>
What i get from Xcode is:
Cannot convert value of type 'Array<protocol<P1, P2>>' to specified type 'Array<P1>'