Treat nil as if it were the right type