is_int is slower than casting and comparing