improvements to support more type conversions for sharding purposes.

Signed-off-by: gburgett <gordon.burgett@gmail.com>