If it really crashes here, then there could be a wrong cast somewhere.