app downcast is not working