Fixed ambiguous cast that breaks compile.