Remove unsafe cast in Client::createWithSurfaceParent am: a03e1302db

Change-Id: I5b890ef48b214ed9702acd7a2cac52162a9c0ddb