Changinf floatX automatically is bad practice. We need to find another way for this. Why do you need this?

Also, as this only check dtype, rename to check_dtype()