Cast Object example