Forward declaring an internally used fast_pointer_cast