asTypePattern

Return this as a PatternDeclaration or throw an UnsupportedOperationException