Add an ERR_CAST() function to complement ERR_PTR and co.