fix cast typo