Bind Structure Issue

I’m experiencing an issue with Binding to a structure that has the Type “primitive.ObjectID” which is a mongo-driver/bson/primitive type. When I try and bind this type I receive “err” = “unknown Type”. Any ideas on how to solve this?

type (
	UserModel struct {
		ID           primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
		UserID       string             `json:"userID"`
		UserName     string             `json:"userName"`
		Password     string             `json:"password"`
		SecurityList []UserSecurity     `json:"securityList"`
		ContactID    string             `json:"contactID"`

		CreationTime
	}

	UserModelTest struct {
		//ID           primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
		UserID       string             `json:"userID"`
		UserName     string             `json:"userName"`
		Password     string             `json:"password"`
		SecurityList []UserSecurity     `json:"securityList"`
		ContactID    string             `json:"contactID"`
	}

	UserSecurity struct {
		Level string `json:"level"`
	}
)

Update User Code

// UpdateUser - Update a user
func UpdateUser(c echo.Context) error {
	id, _ := primitive.ObjectIDFromHex(c.Param("id"))
	utilities.PrintDebug("Update User ID", id)


//UserModel fails with the "unknown Type" error on the primitive.ObjectID
	var u models.UserModel
//When the ID commented out this "test" will pass.
	//var u models.UserModelTest

	utilities.PrintDebug("ModelTest", u)


	if err := c.Bind(&u); err != nil {
		return err
	}

	model, err := models.GetUser(id)
	//model.Password = u.Password

	utilities.PrintDebug("ModelTest", u, err)
	return c.JSON(http.StatusOK, model)
}