--Is it possible to get around this and write the "expand" function? Of course, x and y may be of different types