Add isOfType assertion