double & int type checks