Cast t_entry to int - it's not a string - only caption is.