This is used on numerous hot paths, as having a cast function doing (temporary) allocations is highly surprising.