Converts the provided object obj to a Map. The map keys should match the PostgreSQL composite attribute names.