From 88ba1bfcfb41dee7e76f2a21cb34c3894647c8be Mon Sep 17 00:00:00 2001
From: Joe Polny <joepolny@gmail.com>
Date: Tue, 11 Jul 2023 12:33:30 +0200
Subject: [PATCH 1/2] properly set type with "as" on any type

---
 src/lib/compiler.ts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/compiler.ts b/src/lib/compiler.ts
index 17da544a2..e5923376a 100644
--- a/src/lib/compiler.ts
+++ b/src/lib/compiler.ts
@@ -2464,7 +2464,10 @@ export default class Compiler {
     this.typeHint = this.getABIType(node.type.getText());
     this.processNode(node.expression);
 
-    if (this.lastType === 'any') return;
+    if (this.lastType === 'any') {
+      this.lastType = node.type.getText();
+      return;
+    }
 
     const type = this.getABIType(node.type.getText());
     if ((type.match(/uint\d+$/) || type.match(/ufixed\d+x\d+$/)) && type !== this.lastType) {

From 2622f6acee83859a5981a9a49c2d997f38b3c3c1 Mon Sep 17 00:00:00 2001
From: Joe Polny <joepolny@gmail.com>
Date: Tue, 11 Jul 2023 12:33:53 +0200
Subject: [PATCH 2/2] 0.26.1

---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index c3d8df6af..76305b4c0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@algorandfoundation/tealscript",
-  "version": "0.26.0",
+  "version": "0.26.1",
   "description": "Enables Algorand smart contract development with native TypeScript syntax, tooling, and IDE support",
   "homepage": "https://github.com/algorand-devrel/TEALScript",
   "bugs": {