Replaced the fast unsafe slice type cast with a slow copy to conform with GAE policy.