Is it necessary to cast here? Will the analyzer complain w/o it?