rename try_cast