Meaning of Typecasting and its use

What is typecasting and what’s the use?

c_str function converts c++ string(which is essentially a null terminated array of bytes) to const char * but strtok wants char * ,So what we are doing is explicitly typecasting const char * to char *
by ““c_str”” we can convert string str to a CONSTANT char type pointer
and
by typing (char*) in front of it makes it to a char pointer
so if you will not typecast it, it will give us an error.