If I have a generic method that is constrained to be type \'int\' then surely I should be able to cast an integer to the generic T type. For example...
p
Are you sure its compiling?
Here, it gives following error:
error CS0701: 'int' is not a valid constraint. A type used as a constraint must be an interface, a non-sealed class or a type parameter.