<?php

$array1 = (array)$array;
$array2 = (array) $array;

$bool1 = (bool)$bool;
$bool2 = (bool) $bool;

$int1 = (int)$int;
$int2 = (int) $int

$obj1 = ( object )$object;
$obj2 = (object) $object;

$str1 = (string)$string;
$str2 = (string) $string;

$unset1 = (unset)$unset;
$unset2 = (unset) $unset;

$float1 = (float)$float;
$float2 = (float) $float;
