add func w/ casting to check return type analysis