Cast the node to given type if it accepts input using the given method.
In addition to performing a dynamic cast, this checks if the node currently accepts input. If it doesn't (for example, if the node is disabled), it will fail the cast.
Node to cast.
Node casted to the given type, or null if the node can't be casted, or it doesn't support given input method.
See Implementation
Cast the node to given type if it accepts input using the given method.
In addition to performing a dynamic cast, this checks if the node currently accepts input. If it doesn't (for example, if the node is disabled), it will fail the cast.