add support for unchecked casts