File :: convertTo: Bitrix method

      
<?php 
//  Bitrix\Bizproc\BaseType\File :: convertTo()
//  /dist/bitrix/modules/bizproc/lib/basetype/file.php:104

    
public static function convertTo(FieldType $fieldType$value$toTypeClass)
    {
        
/** @var Base $toTypeClass */
        
$type $toTypeClass::getType();
        switch (
$type)
        {
            case 
FieldType::FILE:
                
$value = (int) $value;
                break;
            default:
                
$value null;
        }

        return 
$value;
    }