You are talking about two different interpretations of a value. The computer can look at the same number and interpret it several ways. You are interpreting a decimal to an integer. I'm not sure what your question is, but you have successfully converted between the two in the given code.
If you are wondering about the pointer, having a integer pointer pointing to a double is like trying to shove a round peg through a square hole. It just doesn't happen. You have to define a double pointer to point to a double.