Issue #239 Fix

Check for object type and fix to cast to string[] if need be.