I'm sure you've already considered it, but my first thought would be to switch the type of the property in the model to be a boolean.
Otherwise, inside the @code block, maybe you could add a property for the boolean, set it inside OnInitializedAsync based on the value of "Active", and assign the proper value to your "Active" property in the method that fires on a valid submit. If boolean is true, Active = 1, else 0.
The general idea is something like (I haven't tested this):
<EditForm Model="@_myModel" OnValidSubmit="SubmittingForm">
<InputCheckbox @bind-Value="_active" />
<button type="submit">Submit</button>
</EditForm>
@code {
private bool _active { get; set; }
private MyModel _myModel = new MyModel();
protected override async Task OnInitializedAsync()
{
_myModel = await //... get your model data from the controller
if(_myModel.Active == 1)
_active = true;
else
_active = false;
}
private void SubmittingForm()
{
// Set the value of the Active property with the value of _active
if(_active == true)
_myModel.Active = 1;
else
_myModel.Active = 0;
//continue...
}
}