Parse widget id as integer