added casting details to reference and exercises