Arduino Memory FULL, I don't know why

Hey thank you so much guys for helping me out with that issue, but now I was working on similar project to this one except it's much larger and I was learning what're pointers, I came across a way to print addresses of variables. I have code below where I am trying to practice. Does any know what does datatype "int" within parenthesis means in function -
Serial.println((int}&A, HEX);

int A = 0; 
int B = 4;

int *pointer;
void setup(){
  Serial.begin(115200);
}

void loop(){
pointer = &A;

  Serial.println( (int)&A, HEX);  //IDK what does "(int)" means inside that. I know "int" as 
                                                    //datatype and how to use it but this is very new to me. 


}