Pastable version of C# Dynamic casting?