How can I get the values of an Object type in my Model?
===

I have a Model with an object type item:

Model:

    public class myModel
    {
        public long id {get;set;}
        public object myobject {get;set;}
    }

in my View I use EditorFor to edit the object with a template:

View:

    @model myModel
    // form (code omitted)
    @Html.EditorFor(model => model.myobject)

    <button type="submit">Save</button>

This is the template:

    @model myObject

    @Html.EditorFor(model => model.myname)

How can I get the myModel.myobject value in the controller? 
I've tried to cast but I get this error: "Unable to cast object of type 'System.Object' to type 'MyProject.Models.myobject'."

