May 22, 2023
Thank you for your comment. You are right that using assert statements for type checking is not safe in production code. This article is meant to be a proof of concept rather than a source for production-ready code. But to not spread un-clean code, I've updated the code. I appreciate your feedback and hope you enjoyed reading the article.