diff --git a/include/cordl_internals/unity-utils.hpp b/include/cordl_internals/unity-utils.hpp index a57d4e988b..9356abe23e 100644 --- a/include/cordl_internals/unity-utils.hpp +++ b/include/cordl_internals/unity-utils.hpp @@ -36,7 +36,7 @@ template struct UnityW { return UnityW(::il2cpp_utils::cast(const_cast(this->innerPtr))); } - template inline std::optional> cast() const { + template inline std::optional> try_cast() const { auto attemptedCast = ::il2cpp_utils::try_cast(const_cast(this->innerPtr)); if (!attemptedCast)