Update MainActivity.cs

small update to sample for casting(manual edit).