[Solved] cannot implicitly convert type int? to string[]


You can’t assign a int? to a string array…

This should fix it.

serializeModel.roles = new string[]{ user.RoleROLE_ID.ToString() };

1

solved cannot implicitly convert type int? to string[]