Fixed 'Bug 10945 - System.InvalidCastException: Cannot cast from
source type to destination type.'.