You need
explicit type conversion here.
Try:
int a = 7;
int b = 5;
dynamic oa = (dynamic)a;
dynamic ob = (dynamic)b;
int c = oa - ob;
If needed, look
here[
^] for more clarity.
UPDATE:
1. As already said by OriginalGriff, your code would work fine if you have .NET framework 4.0
2. Based on the error, it's clear dynamic is not being considered as a keyword and hence an error
3. Look for the missing reference. Probably you are not using .NET framework 4.0, which would be needed here for dynamic keyword.