The test should work whatever floatX is. So you could force myType dtype to be float64. This will force the upcast of x.