Restore type assert that got accidentally removed (#9934)
authored by samuel.fm and committed by GitHub 2 weeks ago 782edbf2 73b096e4