$ 0 0 , I see you've solved this problem in this thread. For more information, see TypeScript Type assertions.