Typecasting.

A provider should assume that an id passed is a string. Added explicit
casting for this.