The Ctype()function is used to cast an object from one type to another.
DirectCastrequires the run-time type of an object variable to be the same as thespecified type.