Model.GetParameterValue<int>("booly", 8) //optional default value if parsing can't happen Model.GetParameterValue("booly",8) // can be used like this as type is implied by default value argument