Supporting references for Any type values and adding preliminary casting functionality.