Handles are precisely described in the manual under "handle()" - read this when you want to convert them.