Check for null questions before casting to object