Converts Matrix.as to native TypeScript