is the cast required here?