Fix ambiguity in use of overloaded functions in XLA
The Py+CPP Test fail seems to be unrelated to this change.
gcc complains of abiguity in some overloaded functions so cast the parameter to overcome this.