Fix kuid_t type casting errors

Change-Id: I282c55448d101706e9b6d91ab9c9905e47ab6f59