A cheaper method of doing downcasting of Statements.
the downcast statement if it can be downcasted, otherwise null
A cheaper method of doing downcasting of Statements.