cast#

Layer.cast()#

Cast the layer object to the correct concrete type.

Returns:
Layer