use getObject for everything except byte[]