typeof uri and sfp[1].asString are String. So, please remove cast.