The input workflow type must be an Activity.
'type' used by you to instantiate Workflownstance is not of type 'Activity'.
WorkflowInstance instance = workflowRuntime.CreateWorkflow(OBJECT_HERE_OF_ACTIVITY_TYPE);
I guess you simply copied code from here:
MSDN: WorkflowInstance[
^], but you need to first define 'type'. Example here was part of sample present here:
MSDN: Cancelling Work sample[
^]