Syntax of read() for file handling in c++ : Eg is Structure Customer and structure variable savac.
The syntax to read is
 **read((char *) &savac,sizeof(customer))**

What is the need of type casting to character array here?