write an object type explicitly