Typecast properties in object streams