Nambew: Fix type conversion for php authentication