diff --git a/src/main/java/com/threerings/presents/data/InvocationMarshaller.java b/src/main/java/com/threerings/presents/data/InvocationMarshaller.java index f166c61fa..d959d1b9a 100644 --- a/src/main/java/com/threerings/presents/data/InvocationMarshaller.java +++ b/src/main/java/com/threerings/presents/data/InvocationMarshaller.java @@ -129,6 +129,15 @@ public class InvocationMarshaller } } + /** + * Performs type casts in a way that works for parameterized types as well as simple types. + */ + @SuppressWarnings("unchecked") + protected K cast (Object value) + { + return (K)value; + } + /** On the server, the id of the invocation method. */ protected transient String _invId; }