I want to know whether the typecasting which i did is right or wrong. Through Internet search, i have found out but i am not sure. Please teach and correct me?

Code:
 int Generator_matrix[10][10];
 int (*GM)[10]= Generator_matrix;//Typecasting

 int values[10][10];
 int (*outdata)[10]= values;//Typecasting