I dont know where you've seen *int but in C (and C++) it should be int*, whether you are casting to or declaring an int pointer.
If you are using a C compiler and you have included stdlib.h, there is no need to cast the result from malloc() (calloc,realloc,...), infact it can cover up serious bugs (see
here for more info).