In Odoo 10-e is this possible to execute a query and then cast the resultant list or tuple into a python object. Like
self.env.cr.execute("SELECT * FROM res.users WHERE Id = 1")
In above query it would return a single record
self.env.cr.execute("SELECT * FROM res.users")
Now this query would return a list of users. Now is there any way to tell self.env.cr.fetchall() that i want the result as a single User object or List of Users . If not then can we cast them after fetching ?