public static function typeCast(array $array)
    {
        $return = [];
        
        foreach ($array as $k => $v) {
            if (is_numeric($v)) {
                $return[$k] = StringHelper::typeCastNumeric($v);
            } elseif (is_array($v)) {
                $return[$k] = self::typeCast($v);
            } else {
                $return[$k] = $v;
            }
        }
        
        return $return;
    }
public static function typeCast(array $array)
    {
        $return = [];
        
        foreach ($array as $k => $v) {
            if (is_numeric($v)) {
                $return[$k] = StringHelper::typeCastNumeric($v);
            } elseif (is_array($v)) {
                $return[$k] = self::typeCast($v);
            } else {
                $return[$k] = $v;
            }
        }
        
        return $return;
    }
public static function typeCast ( array $ array ) { $ return = [ ] ; foreach ( $ array as $ k => $ v ) { if ( is_numeric ( $ v ) ) { $ return [ $ k ] = StringHelper :: typeCastNumeric ( $ v ) ; } elseif ( is_array ( $ v ) ) { $ return [ $ k ] = self :: typeCast ( $ v ) ; } else { $ return [ $ k ] = $ v ; } } return $ return ; }
TypeCast values from a mixed array source. numeric values will be casted as integer.

This method is often used to convert corect json respons arrays

@param array $array The array which should be type casted
@return array An array with type casted values
TypeCast values from a mixed array source . numeric values will be casted as integer .