Int, String, ByteString to instance of RetType