You'd need to write a custom class with those properties declared as public variables (or getter/setter pairs). Aside from giving you typing information in the compiler, this will also let your code run a little faster (since it doesn't need to infer the types at runtime).