Workaround kind-safety compile error