Report question

Question: How to convert Google spreadsheet's worksheet string id to integer index (GID)?