fix Issue 9027 - Getting address of overloaded function using `cast` selects the lexically first one if there is no match