public static function castArrayToFloatArray($array, $recursion = true, $unsigned = false)
    {
        foreach ($array as $key => $value) {
            if (is_array($value) && $recursion) {
                $array[$key] = self::castArrayToFloatArray($value, $recursion, $unsigned);
            } elseif (!is_array($value)) {
                $array[$key] = (float) $value;

                if ($unsigned) {
                    $array[$key] = abs($array[$key]);
                }
            }
        }

        return $array;
    }