Convert objects to primitives. Closes #39