The "element AS type" clause is permitted only within a TYPE...END TYPE block.