Properly downcast to any type of SwFlowFrm, not just SwCntntFrm

Change-Id: I6b3ade33c282823f4868c1fea5906d71eaeb5568