Use the String object to cast (see GitHub issue #29)

Signed-off-by: Dan Hunsaker <danhunsaker@gmail.com>