Filter kernel casting