private static object Cast(object source, BuiltInType targetType) { BuiltInType sourceType = GetBuiltInType(source); if (sourceType == BuiltInType.Null) { return null; } return Cast(source, sourceType, targetType); }