convert swift to obj.[ok]