(the function is still called ToValue, so this panic is a bit more confusing than before)