Short story, here's my code:
var_dump($recentGame->createDate);
var_dump((int) $recentGame->createDate);
Is producing the following output:
float 1416772859827
int -566347853
Why is the output of the typecasted output not this:
int 1416772859827
$seconds = $recentGame->createDate / 1000; echo date("d-m-Y", $seconds);