Cache #type into instance variable