Don't pass a null pointer to cast<> in its unit tests.