Change the type of x and y