Type-safe code accesses only the memory locations it is authorized to access.For example, type-safe code cannot read values from another object's private fields. It accesses types only in well-defined, allowable ways
Type safty means we are storing value in specific allocated datatype for the value. And the datatype should not accept any other value in different format. for similar kind questions in c# you can refer this link c# interview questions