Add type assertions helper functions