summaryrefslogtreecommitdiff
path: root/src/core/Casting.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/Casting.cs')
-rwxr-xr-xsrc/core/Casting.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/Casting.cs b/src/core/Casting.cs
new file mode 100755
index 0000000..dbc25f0
--- /dev/null
+++ b/src/core/Casting.cs
@@ -0,0 +1,10 @@
+namespace core
+{
+ public static class Casting
+ {
+ public static T DowncastTo<T>(this object item) where T : class
+ {
+ return item as T;
+ }
+ }
+} \ No newline at end of file