In vb.net, if Strict On, this code won't compile:

VB Code:
  1. dim x as string = ""
  2. dim num as integer = 1
  3. x = y
  4. 'this would be an error

in c#.net, this code WILL compile:
Code:
string x = "";
int num = 1;
x = num;
is there a way to make it so that the c# code DOES NOT compile.